﻿using System;

namespace AngularJS
{
    public interface IPromise
    {
        IPromise Then(Action<object> success, Action<string> error = null, Action<object> notify = null);

        IPromise Catch(Action<string> error);

        IPromise Finally(Action<object> callback);
    }
}
